package com.leunpha.mini.net.events;

import java.util.EventObject;

/**
 * User: zhoujingjie
 * Date: 14-5-14
 * Time: 下午2:24
 */
public class NetEvent{
    private Object value;
    private NetState state;

    private NetEvent(Object value,NetState state){
        this.value = value;
        this.state = state;
    }
    public static NetEvent instance(NetState state,Object value){
        return new NetEvent(value,state);
    }
    public static NetEvent instance(NetState state){
        return new NetEvent(null,state);
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public NetState getState() {
        return state;
    }

    public void setState(NetState state) {
        this.state = state;
    }
}
